package com.voicechat.firstmet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet.bean
 * @ClassName: PersonDataBean
 * @Description: 实名认证bean
 * @Author: ljp
 * @CreateDate: 2018/10/26 17:39
 * @Version: 1.0
 */
public class PersonDataBean {


    /**
     * code : 200
     * msg : 成功
     * object : {"id":"c7a04ff15c824f4bbae768de86cefc57","isNewRecord":false,"userId":"f68b3c28db3c41d795b34268aef3b68a","name":"王翠芬","idCard":"411000000000000001","mobile":"17630849402","positiveUrl":"身份证正面","negativeUrl":"身份证反面","status":1}
     */

    private int code;
    private String msg;
    private ObjectBean object;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ObjectBean getObject() {
        return object;
    }

    public void setObject(ObjectBean object) {
        this.object = object;
    }

    public static class ObjectBean implements Parcelable{
        /**
         * id : c7a04ff15c824f4bbae768de86cefc57
         * isNewRecord : false
         * userId : f68b3c28db3c41d795b34268aef3b68a
         * name : 王翠芬
         * idCard : 411000000000000001
         * mobile : 17630849402
         * positiveUrl : 身份证正面
         * negativeUrl : 身份证反面
         * status : 1
         */

        private String id;
        private boolean isNewRecord;
        private String userId;//用户id
        private String name;//真是姓名
        private String idCard;//身份证号码
        private String mobile;//手机号码
        private String positiveUrl;//正面照片
        private String negativeUrl;//反面照片
        private int status;//认证状态 0审核中 1审核通过 2驳回

        @Override
        public String toString() {
            return "ObjectBean{" +
                    "id='" + id + '\'' +
                    ", isNewRecord=" + isNewRecord +
                    ", userId='" + userId + '\'' +
                    ", name='" + name + '\'' +
                    ", idCard='" + idCard + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", positiveUrl='" + positiveUrl + '\'' +
                    ", negativeUrl='" + negativeUrl + '\'' +
                    ", status=" + status +
                    '}';
        }

        protected ObjectBean(Parcel in) {
            id = in.readString();
            isNewRecord = in.readByte() != 0;
            userId = in.readString();
            name = in.readString();
            idCard = in.readString();
            mobile = in.readString();
            positiveUrl = in.readString();
            negativeUrl = in.readString();
            status = in.readInt();
        }

        public static final Creator<ObjectBean> CREATOR = new Creator<ObjectBean>() {
            @Override
            public ObjectBean createFromParcel(Parcel in) {
                return new ObjectBean(in);
            }

            @Override
            public ObjectBean[] newArray(int size) {
                return new ObjectBean[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getPositiveUrl() {
            return positiveUrl;
        }

        public void setPositiveUrl(String positiveUrl) {
            this.positiveUrl = positiveUrl;
        }

        public String getNegativeUrl() {
            return negativeUrl;
        }

        public void setNegativeUrl(String negativeUrl) {
            this.negativeUrl = negativeUrl;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeByte((byte) (isNewRecord ? 1 : 0));
            dest.writeString(userId);
            dest.writeString(name);
            dest.writeString(idCard);
            dest.writeString(mobile);
            dest.writeString(positiveUrl);
            dest.writeString(negativeUrl);
            dest.writeInt(status);
        }
    }
}
